<%-- 
    Document   : ReportResult
    Created on : Apr 21, 2012, 10:28:15 AM
    Author     : Admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Kết quả báo cáo</title>
        <link rel="stylesheet" type="text/css" href="CSS/default.css" >
        <script src="CSS/stuHover.js" type="text/javascript"></script>
        <script type="text/javascript" src="CSS/jquery-latest.js"></script>
        <script type="text/javascript" src="banner_images/swfobject.js"></script>
    </head>


<body>

    <!-- Banner -->
    <div class="top">
	<div class="header">
		<div class="left">
			<div align="center">
    <div id="flashcontent">
        <script type="text/javascript">
            var so = new SWFObject("banner_images/banner.swf", "mymovie", "900", "250", "8");
            so.addParam("menu", "false");
            so.write("flashcontent");
        </script>
    </div>
                   </div>
		</div>
	</div>
    </div>

   <div class="container">
        <!-- Tab Menu-->
        <div class="menu">
            <div class="navigation">
		<a href="Home.htm">Trang chủ</a>
		<a href="Search.htm">Tìm kiếm</a>
                <% if( request.getSession().getAttribute("roleManager") != null){%>
                <a href="ManageStaff.htm">Quản lý cán bộ</a>
                <a href="Report.htm">Báo cáo</a>
                <%}%>
                <% if( request.getSession().getAttribute("roleAdmin") != null){%>
                <a href="AdminManageInstitute.htm">Quản lý Viện</a>
                <a href="AdminManageStaff.htm">Quản lý Lãnh đạo viện</a>
                <a href="AuthorityChooseInstitute.htm">Phân quyền</a>
                <a href="Report.htm">Báo cáo</a>
                <%}%>
            </div>
        </div>
        <!-- End tab menu-->

   <!-- Main content & Right Menu -->
   <div class="main">
    <!-- Nội dung chính của trang-->
    <div class="content">
        <div id="content">
            <h3>${error}</h3>
            <br/>
            <c:forEach items="${staffList}" var="staff">
                <table>
                <tr>
                    <td><img src="${staff.duongdananh}"/></td>
                    <td>Họ tên: ${staff.hoten}</td>                 
                </tr>
                </table>
            </c:forEach>
            <br/>
            <a href="Report.htm"> &laquo;Quay lại</a>
         </div>
    </div>
    <!-- End main content -->

    <!-- Right menu-->
    <div class="sidenav">

      <% if( request.getSession().getAttribute("userName") == null){%>
      <form method="POST" action="Login.htm" >
      <h2>Đăng nhập</h2>
      <br/>
      <a>Tài khoản
          <input type="text" name="username" size="15" id="dangnhap"/>
      </a> <br/><br/>
      <a>Mật khẩu
          <input type="password" name="password" size="15" id="dangnhap"/>
          ${error}
      </a> <br/><br/>
      <input type="submit" value="Đăng nhập" />
      </form>
      <%}else {%>
      <h2>Tài khoản</h2>
      <li><a href="StaffProfile.htm?username=${sessionScope['userName']}">Xin chào ${sessionScope['userName']}!</a></li>
      <li><a href="StaffInfo.htm?viewId=1&id=${sessionScope['idSoyeu']}">Diễn biến Học hàm, Học vị</a></li>
      <li><a href="StaffInfo.htm?viewId=2&id=${sessionScope['idSoyeu']}">Quá trình nghiên cứu</a> </li>
      <li><a href="StaffInfo.htm?viewId=3&id=${sessionScope['idSoyeu']}">Quá trình đi nước ngoài</a> </li>
      <li><a href="StaffInfo.htm?viewId=4&id=${sessionScope['idSoyeu']}">Diễn biến lương</a> </li>
      <li><a href="logout.htm">Thoát</a></li>
      <%}%>

      <h2> Danh Sách Viện </h2>
          <ul id="accordion">
	<li>Viện Nghiên Cứu</li>
	<ul>
		<c:forEach items="${dvqlList1}" var="dvql">
                    <li><a href="Institute.htm?iddvql=${dvql.iddonviquanly}">${dvql.ten}</a></li>
                </c:forEach>
	</ul>
	<li>Đơn Vị Hành Chính</li>
	<ul>
		<c:forEach items="${dvqlList2}" var="dvql">
                    <li><a href="Institute.htm?iddvql=${dvql.iddonviquanly}">${dvql.ten}</a></li>
                </c:forEach>
	</ul>
        </ul>

      <h2> Giới thiệu theo yêu cầu </h2>
      <ul><a href="#"><img src="images/gioithieu/thuviensoad.gif" width="190"/> </a> </ul>
      <ul><a href="#"><img src="images/gioithieu/nxb_khtn&cn.jpg" width="190"/> </a> </ul>
      <ul><a href="#"><img src="images/gioithieu/thietbinghiencuu.jpg" width="190"/> </a> </ul>
      <ul><a href="#"><img src="images/gioithieu/baotangthiennhienvn.gif" width="190"/> </a> </ul>
      <ul><a href="#"><img src="images/gioithieu/baotanghaiduong.jpg" width="190"/> </a> </ul>

    </div>
    <!-- End Right Menu-->

    <div class="clearer"><span></span></div>
    </div>
    <!-- End Main content & Right Menu -->

    <!-- Footer -->
    <div class="footer">
    </div>
    <!-- End Footer -->

    </div>
   </body>
   <SCRIPT>
$("#accordion > li").click(function(){

	if(false == $(this).next().is(':visible')) {
		$('#accordion > ul').slideUp(300);
	}
	$(this).next().slideToggle(300);
});

$('#accordion > ul:eq(0)').show();

</SCRIPT>
</html>

